//
//  BRAreaTableViewCell.m
//  BrezzeSaaS
//
//  Created by IOS on 2021/9/24.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import "BRAreaTableViewCell.h"

@implementation BRAreaTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
  
    self.nameL.textColor = UIColor.qd_mainTextColor;
    self.nameL.font = [UIFont br_fontM:15];
    self.numL.textColor = UIColor.qd_titleTextColor;
    self.numL.font = [UIFont br_fontM:15];
}

- (void)setDto:(BrezzeAreaModel *)dto {
    _dto = dto;
    self.nameL.text = dto.en;
    if ([[BRLanguageManager share] isChinese]) {
        self.nameL.text = dto.cn;
    }
    
    self.numL.text = [NSString stringWithFormat:@"+%ld",dto.code];
    NSString *fileUrl  = [NSString stringWithFormat:@"%@%@",USERManager.filesSever,dto.image];
    [self.areaImg sd_setImageWithURL:[NSURL URLWithString:fileUrl] placeholderImage:UIImageMake(@"area_default")];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
